/*  
    Copyright 2010 Mike Eheler <mike.eheler@gmail.com>

    This file is part of Four Falling Blocks Puzzle Game.

    Four Falling Blocks Puzzle Game is free software: you can
	redistribute it and/or modify it under the terms of the GNU General
	Public License as published by the Free Software Foundation, either
	version 3 of the License, or (at your option) any later version.

    Four Falling Blocks Puzzle Game is distributed in the hope that it
	will be useful, but WITHOUT ANY WARRANTY; without even the implied
	warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
	See the GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Four Falling Blocks Puzzle Game.
	
	If not, see <http://www.gnu.org/licenses/>.
*/

#include <cstdlib>
#include <ctime>
#include <windows.h>

#include "ui/widgets/fbmainwindow.moh"
#include "types.h"

int main( int argc, char * argv[] )
{
	srand( static_cast<uint32_t>(time(0)) );

	QApplication::setStyle( new QPlastiqueStyle );
	QApplication app( argc, argv );

	FBMainWindow mainwnd;

	QRect dr = QApplication::desktop()->availableGeometry( &mainwnd );
	QRect wr = mainwnd.frameGeometry();

	// centre the window on the screen
	mainwnd.move( (dr.width() - wr.width()) / 2, (dr.height() - wr.height()) / 2 );
	mainwnd.show();

	return app.exec();
}
